Lp_solve version 5.5.0.13 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    lp_solve  most recent diff


    version 5.5.0.13

      View the most recent changes for the lp_solve port at: lp_solve.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for lp_solve.
      The raw portfile for lp_solve 5.5.0.13 is located here:
      http://lp_solve.darwinports.com/dports/math/lp_solve/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/lp_solve


      The lp_solve Portfile 45286 2009-01-12 22:24:38Z blb macports.org $

      PortSystem 1.0

      Name: lp_solve
      Version: 5.5.0.13
      Revision: 1
      Category: math
      Platform: darwin
      Maintainers: nomaintainer
      Description: Linear Programming Solver
      Long Description: Mixed Integer Linear Programming (MILP) solver. lp_solve solves pure linear, (mixed) integer/binary, semi-continuous and special ordered sets (SOS) models. lp_solve is written in ANSI C and can be compiled on many different platforms like Mac OS X, Linux and Windows.

      Homepage: http://lpsolve.sourceforge.net/5.5/
      Master Sites: sourceforge:lpsolve
      distname ${name}_${version}_source
      worksrcdir ${name}_5.5
      Checksums: md5 e8e71b1bf86267597d5776ab0f69721d sha1 ddad2f7aabfcc9c9998800c09b4a3d27fca7138f rmd160 63ffd2df25bde0c7ca5da4fba4140a8fb97b0495

      Patch Files: patch-Wno-long-double.diff
      use_configure no
      set worksrcpath ${workpath}/${worksrcdir}
      build.cmd cd ${worksrcpath}/lpsolve55/ && sh ./ccc.osx && cd ${worksrcpath}/lp_solve/ && sh ./ccc.osx
      build.args {}

      destroot {
      xinstall -m 755 -W ${worksrcpath}/lpsolve55 liblpsolve55.a liblpsolve55.dylib ${destroot}${prefix}/lib
      xinstall -m 755 -W ${worksrcpath}/lp_solve lp_solve ${destroot}${prefix}/bin
      xinstall -m 755 -d ${destroot}${prefix}/include/lpsolve
      eval xinstall -m 444 [glob ${worksrcpath}/*.h] ${destroot}${prefix}/include/lpsolve/
      }


    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/lp_solve
      % sudo port install lp_solve
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching lp_solve
      ---> Verifying checksum for lp_solve
      ---> Extracting lp_solve
      ---> Configuring lp_solve
      ---> Building lp_solve with target all
      ---> Staging lp_solve into destroot
      ---> Installing lp_solve
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using lp_solve with these commands:
      %  man lp_solve
      % apropos lp_solve
      % which lp_solve
      % locate lp_solve

     Where to find more information:

    Darwin Ports



    Lightbox this page.